package com.android.topview.watermelon.network

import okhttp3.OkHttpClient
import retrofit2.Retrofit
import java.util.concurrent.TimeUnit

object RetrofitManager {

    private val retrofit = Retrofit.Builder()
        .baseUrl("https://api.it120.cc/gooking/forex/")
        .client(
            OkHttpClient.Builder()
                .connectTimeout(10, TimeUnit.SECONDS)
                .readTimeout(10, TimeUnit.SECONDS)
                .writeTimeout(10, TimeUnit.SECONDS)
                .build()
        )
        .build()

    fun getRetrofit(): Retrofit = retrofit

}